﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SmokinEditor
{
    public partial class Selection: UserControl
    {
        public Type Type_Of_Object;
        private Editor_Tools gEditor = null;
        private SelectionOptions _Select_Options;
        public SelectionOptions Select_Options
        {
            get{return _Select_Options;}
            set{_Select_Options = value;}
        }
        public Selection(Editor_Tools FormToEdit)
        {
            gEditor = FormToEdit;
            Type_Of_Object = typeof(Selection);
            InitializeComponent();
            this.ControlName.Text = Type_Of_Object.Name;
        }

        private void pictureBox1_MouseDown(object sender, MouseEventArgs e)
        {
            gEditor.SelectedObject = Type_Of_Object;
            gEditor.PropertyName.Text = Type_Of_Object.Name;
            Type[] tempType = new Type[1];
            tempType[0] = typeof(SelectionOptions);
            object[] tempObject = new object[1];
            tempObject[0] = SelectionOptions.Normal;
            gEditor.TheProperties = new Property_List(tempType, tempObject, "Options");
            gEditor.PropertyChanger.SelectedObject = gEditor.TheProperties;//gEditor.TheProperties;
            //gEditor.parent.FormHandle.Activate();
        }
    }

    public enum SelectionOptions: int
    {
        Normal,
        MapTiles
    }
}
